package de.jkoslows.decisions.control;

import de.jkoslows.decisions.entity.ExpressionParameter;
import de.jkoslows.decisions.entity.Parameter;
import de.jkoslows.decisions.entity.ExpressionParameter.Expression;

public class Parameters {
	
	public static Parameter getParameter(String typeId, double value, String unitId){
		
		return new Parameter(Types.getType(typeId, unitId), value, Types.getUnit(Types.getType(typeId)));
	}
	
	public static ExpressionParameter getExpressionParameter(String typeId, double value, String unitId, Expression expression, double deviation){
		return new ExpressionParameter(Types.getType(typeId, unitId), value, Types.getUnit(Types.getType(typeId)), expression, deviation);
	}

}
